<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateCaseStatisticsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('case_statistics', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('users_id');
            $table->string('case_type')->nullable()->comment('案件分类');
            $table->integer('case_num')->comment('完成数量');
            $table->integer('case_quality')->commnet('完成质量（01、很好；02、较好；03、一般；04、差）');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('case_statistics');
    }
}
